*{
    margin: 0;
    padding: 0;
}
.main{
    width: 600px;
    height: 660px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;// 设置主轴为纵向
    justify-content: space-between;
    .game-container{
        width: 600px;
        height: 600px;
        position: relative; // 父相子绝
        background-color: bisque;
        .snake{
            &>div{
                position: absolute;
                width: 18px;
                height: 18px;
                border-radius: 50%;
                background-color: aqua;
            }
        }
        .food{
            position: absolute;
            width: 20px;
            height: 20px;
            top: 200px;
            left: 200px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            &>div{
                width: 9px;
                height: 9px;
                background-color: chartreuse;
                border-radius: 50%;
            }
        }
    }
    .game-info{
        width: 600px;
        height: 60px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}